//
//  SocketIOHandler.h
//  delongzhitou
//
//  Created by Mr.Wang on 2018/11/27.
//  Copyright © 2018 delongzhitou. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SocketIO-Swift.h"

NS_ASSUME_NONNULL_BEGIN

@interface SocketIOHandler : NSObject

+(SocketIOHandler*)shareInstance;


//@property (nonatomic, strong) SocketManager *manager;

- (void)connect;
- (void)disconnect;
- (NSUUID * _Nonnull)on:(NSString * _Nonnull)event callback:(void (^ _Nonnull)(NSArray * _Nonnull data))callback;
- (void)emitWithAck:(NSString * _Nonnull)event with:(NSArray * _Nonnull)items callback:(void (^ _Nonnull)(NSArray * _Nonnull data))callback;
- (void)removeAllHandlers;
- (void) emit:(NSString *)event items:(NSArray *)items;

@property(nonatomic,assign)BOOL isNotConnected;
@property(nonatomic,assign)BOOL isDisConnected;


@end

NS_ASSUME_NONNULL_END
